package com.comunity_cloud.exceptions;

import org.apache.http.HttpStatus;

public class ExceptionFactory {

	public static TransportException createTransportException(int statusCode, String responseBody, String request, String statusReason) {
		switch (statusCode) {
		case HttpStatus.SC_CONFLICT:
			return new UserNameOrEmailConflict();			

		default:
			return new TransportException(statusReason, statusCode, request, responseBody);
		}
	}
}
